Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use recommended theme from theme manager #41

Closed
wants to merge 10 commits into from

Conversation

timja
Copy link
Member

@timja timja commented May 26, 2022

See jenkinsci/theme-manager-plugin#103

and jenkinsci/dark-theme-plugin#194

Main thing left is adapting to system themes which may need an extension to the theme manager API, I'll have a think about that tomorrow

pom.xml Outdated Show resolved Hide resolved
@timja timja requested a review from uhafner June 1, 2022 08:07
@timja
Copy link
Member Author

timja commented Jun 1, 2022

@uhafner I have some follow up work for moving the UI to theme manager but this is more important I think.

@uhafner
Copy link
Member

uhafner commented Jun 1, 2022

I doubt that I find spare time this and next week, sorry.

@timja
Copy link
Member Author

timja commented Jun 1, 2022

I doubt that I find spare time this and next week, sorry.

np

pom.xml Outdated Show resolved Hide resolved
@timja
Copy link
Member Author

timja commented Jun 2, 2022

@uhafner I find it a really poor developer UX that mvn clean install passes locally but I get issues on CI 😢

@uhafner
Copy link
Member

uhafner commented Jun 2, 2022

Well, there is no unified warnings plugin for maven available right now (that takes into account new and outstanding warnings).

@timja
Copy link
Member Author

timja commented Jun 2, 2022

Well, there is no unified warnings plugin for maven available right now (that takes into account new and outstanding warnings).

much easier imo to either be at 0 warnings or suppress existing warnings and don't allow new ones

@uhafner
Copy link
Member

uhafner commented Jun 2, 2022

Yes, that is what I try to do in my projects. But does CheckStyle, SpotBugs and PMD report the actual warnings in a readable way already? Then it would make sense to set the failOnWarnings flag to true.

@timja
Copy link
Member Author

timja commented Jun 2, 2022

Yes readable just fine

timja added a commit to jenkinsci/analysis-pom-plugin that referenced this pull request Jun 5, 2022
@@ -175,7 +182,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.artifactId}/js</outputDirectory>
<outputDirectory>${project.basedir}/src/main/webapp/js</outputDirectory>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maven-hpi-plugin cannot find resources if they are in the build directory. They need to be in the webapp directory to be picked up.

It works on a full winstone server but not the jetty dev server.

This also breaks SNAPSHOT dependencies across different plugins, e.g. creating a SNAPSHOT of this plugin and running it in the design library did not work for me

I think there's similar issues throughout the echarts / bootstrap plugins

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a bug in the maven-hpi-plugin, can't we fix that there? Copying generated sources to the src folder violates all maven standards and degenerates the developer experience in IntelliJ.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure the impacts of changing it or if it supports multiple paths etc.

This is where the code is I believe:
https://github.com/jenkinsci/maven-hpi-plugin/blob/a041c9f3ec9675ae0ae3b56b3aa49a3c3ab7f089/src/main/java/org/jenkinsci/maven/plugins/hpi/HplMojo.java#L97-L98

degenerates the developer experience in IntelliJ.
Without this fix the developer experience doesn't work at all in IntelliJ it's 100% broken.

I assume you use that docker dev thing here without hpi:run? (that's not how plugins are normally developed though)

I assume your complaint is around generated resources showing up in search, if we can't fix maven-hpi-plugin safely then we could likely include some config in this repo to mark it as excluded.

@timja timja marked this pull request as draft June 9, 2022 19:47
@timja
Copy link
Member Author

timja commented Jun 9, 2022

Converting to draft till system theme is working

Copy link
Member

@uhafner uhafner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I installed the PR locally but the highlighting of the source code is gone (in the warnings plugin). Do I need to activate something to see it in action?

@@ -175,7 +182,7 @@
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/${project.artifactId}/js</outputDirectory>
<outputDirectory>${project.basedir}/src/main/webapp/js</outputDirectory>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a bug in the maven-hpi-plugin, can't we fix that there? Copying generated sources to the src folder violates all maven standards and degenerates the developer experience in IntelliJ.

@timja
Copy link
Member Author

timja commented Jun 12, 2022

I installed the PR locally but the highlighting of the source code is gone (in the warnings plugin). Do I need to activate something to see it in action?

shouldn't but I plan to do more work before taking this out of draft as this approach doesn't work for system themes.

@timja timja mentioned this pull request Aug 20, 2023
@uhafner uhafner closed this in #107 Sep 15, 2023
@timja timja deleted the theme-manager branch September 15, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants